package org.tgcms.core.dal.dao;

import java.util.List;

public interface EntityDao<T, P> {
	
	public List<T> listAll() throws DaoException;
	
	public T create(P parent) throws DaoException;

	public T get(Long id) throws DaoException;
	
	public T put(T entity) throws DaoException;

	public void delete(T entity) throws DaoException;

}
